package com.nelson.transform

import com.android.build.gradle.AppExtension
import org.gradle.api.Plugin
import org.gradle.api.Project

class TransformPlugin implements Plugin<Project> {

    @Override
    void apply(Project project) {
        def android = project.extensions.getByType(AppExtension)
        android.registerTransform(new InjectTransform(project))

        project.task('JustTask') {
            doLast {
                println "InjectTransform task."
            }
        }
    }
}